package com.bjpowernode.service;

import com.bjpowernode.entity.TActivity;
import com.bjpowernode.query.ActivityQuery;
import com.github.pagehelper.PageInfo;
import jakarta.validation.Valid;
import org.springframework.stereotype.Service;

import java.util.List;

public interface ActivityService {
    PageInfo<TActivity> getActivityByPage(Integer current, ActivityQuery activityQuery);

    TActivity getActivityById(Integer id);

    int addActivity(@Valid ActivityQuery activityQuery);

    int editActivity(@Valid ActivityQuery activityQuery);

    int deleteActivity(Integer id);

    int deleteActivities(List<String> list);
}
